package com.hernie.piggymall.product.feign;

import com.hernie.common.to.SkuHasStockVo;
import com.hernie.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @Author HuangJp
 * @Date 2022/3/12
 * @Description
 */
@FeignClient("piggymall-ware")
public interface WareFeignService {

    @PostMapping("/ware/waresku/hasStock")
    R getSkusHasStock(@RequestBody List<Long> skuIds);
}
